<?php $this->load->view('layout/adminHeader'); ?>
    
    <div id="mainContent" class="floatFix">
    	<?php $this->load->view('layout/adminBookingsSubmenu'); ?>
        
    	<div class="lCol">
			<?php $this->load->view('layout/flashdata'); ?>

           	<h2>Step 5 : Payement</h2>
			
			<?php echo validation_errors(); ?>
			
			<form action="<?php echo site_url("bookings/step5"); ?>" method="post">
				<ul class="displayList">			
					<li class="floatFix">
						<p class="dlLabel">Amount due:</p>
						<p class="dlContent"><?php if (isset($booking_total)) echo $booking_total;?> </p>
					</li>
					<li class="floatFix">
						<p class="dlLabel">Amount paid:</p>
						<p class="dlContent"><input type="text" name="booking_amount_paid" id="booking_amount_paid" value="<?php echo set_value('booking_amount_paid', $this->session->userdata('booking_amount_paid')); ?>" /> </p>
					</li>
					<li class="floatFix">
						<p class="dlLabel">Payment method:</p>
						<p class="dlContent">
						<?php 
						if( (!isset($_POST["booking_payment_method"])) && (!$this->session->userdata('booking_payment_method')) ) $select =  "Cash";						
						elseif ($this->session->userdata('booking_payment_method')) $select = $this->session->userdata('booking_payment_method');
						elseif (isset($_POST["booking_payment_method"])) $select = $_POST["booking_payment_method"];
						echo dropdown_payment_method("booking_payment_method",$select);
						?>
						</p>
					</li>	
					<li class="floatFix">
						<p class="dlLabel">Payment location:</p>
						<p class="dlContent">
						<?php 
						if( (!isset($_POST["booking_payment_location"])) && (!$this->session->userdata('booking_payment_location')) ) $select =  "Cash";						
						elseif ($this->session->userdata('booking_payment_location')) $select = $this->session->userdata('booking_payment_location');
						elseif (isset($_POST["booking_payment_location"])) $select = $_POST["booking_payment_location"];
						echo dropdown_payment_location("booking_payment_location",$select);
						?>
						</p>
					</li>	
					<li class="floatFix">
                        <input type="submit" class="submitButton" value="Proceed >>" name="proceed" id="proceed" />
                    </li>
				</ul>
			</form>
		</div>
	
        <div class="rCol">
        	<h2>Sidebar</h2>
        </div>
        
    </div>
    
<?php $this->load->view('layout/adminFooter'); ?>